package com.zxj.friend.domain.message.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 消息内容表
 * </p>
 *
 * @author zxj2022
 * @since 2025-01-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_message_text")
@Schema(name="MessageText对象", description="消息内容表")
public class MessageText extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "消息内容id（主键）")
    @TableId(value = "text_id", type = IdType.ASSIGN_ID)
    private Long textId;

    @Schema(description = "消息标题")
    private String messageTitle;

    @Schema(description = "消息内容")
    private String messageContent;
}
